//
//  PaiLie5Cell.m
//  K8彩票
//
//  Created by zyn on 2017/6/6.
//  Copyright © 2017年 zhoubo. All rights reserved.
//

#import "PaiLie5Cell.h"

@implementation PaiLie5Cell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setContentPaiLie5:(NSMutableArray *)array{
    CaipiaoHistoryModel *model = array[0];
    CaipiaoHistoryModel *modelS1 = array[1];
    CaipiaoHistoryModel *modelS2 = array[2];
    
    _labelName.text = NSLocalizedString(@"排列五", @"排列五");
    _labelQiHao.text = [NSString stringWithFormat:NSLocalizedString(@"第%@期", @"第%@期"),model.issueno];
    NSArray *arrs = [model.number componentsSeparatedByString:@" "];
    _label1.text = arrs[0];
    _label2.text = arrs[1];
    _label3.text = arrs[2];
    _label4.text = arrs[3];
    _label5.text = arrs[4];
    
    _labelS1QiHao.text = [NSString stringWithFormat:NSLocalizedString(@"第%@期", @"第%@期"),modelS1.issueno];
    NSArray *arrsS1 = [modelS1.number componentsSeparatedByString:@" "];
    _labelS11.text = arrsS1[0];
    _labelS12.text = arrsS1[1];
    _labelS13.text = arrsS1[2];
    _labelS14.text = arrsS1[3];
    _labelS15.text = arrsS1[4];
    
    _labelS2QiHao.text = [NSString stringWithFormat:NSLocalizedString(@"第%@期", @"第%@期"),modelS2.issueno];
    NSArray *arrsS2 = [modelS2.number componentsSeparatedByString:@" "];
    _labelS21.text = arrsS2[0];
    _labelS22.text = arrsS2[1];
    _labelS23.text = arrsS2[2];
    _labelS24.text = arrsS2[3];
    _labelS25.text = arrsS2[4];
    
    _label4.hidden = NO;
    _label5.hidden = NO;
    _labelS11.hidden = NO;
    _labelS12.hidden = NO;
    _labelS21.hidden = NO;
    _labelS22.hidden = NO;


}

-(void)setContentPaiLie3:(NSMutableArray *)array{
    CaipiaoHistoryModel *model = array[0];
    CaipiaoHistoryModel *modelS1 = array[1];
    CaipiaoHistoryModel *modelS2 = array[2];
    
    _labelName.text = NSLocalizedString(@"排列三", @"排列三");
    _labelQiHao.text = [NSString stringWithFormat:NSLocalizedString(@"第%@期", @"第%@期"),model.issueno];
    NSArray *arrs = [model.number componentsSeparatedByString:@" "];
    _label1.text = arrs[0];
    _label2.text = arrs[1];
    _label3.text = arrs[2];
//    _label4.text = arrs[1];
//    _label5.text = arrs[2];
    
    _labelS1QiHao.text = [NSString stringWithFormat:NSLocalizedString(@"第%@期", @"第%@期"),modelS1.issueno];
    NSArray *arrsS1 = [modelS1.number componentsSeparatedByString:@" "];
//    _labelS11.text = arrsS1[0];
//    _labelS12.text = arrsS1[1];
    _labelS13.text = arrsS1[0];
    _labelS14.text = arrsS1[1];
    _labelS15.text = arrsS1[2];
    
    _labelS2QiHao.text = [NSString stringWithFormat:NSLocalizedString(@"第%@期", @"第%@期"),modelS2.issueno];
    NSArray *arrsS2 = [modelS2.number componentsSeparatedByString:@" "];
//    _labelS21.text = arrsS2[0];
//    _labelS22.text = arrsS2[1];
    _labelS23.text = arrsS2[0];
    _labelS24.text = arrsS2[1];
    _labelS25.text = arrsS2[2];
    
    _label4.hidden = YES;
    _label5.hidden = YES;
    _labelS11.hidden = YES;
    _labelS12.hidden = YES;
    _labelS21.hidden = YES;
    _labelS22.hidden = YES;
}









@end
